
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>编程exe · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../问题/安装软件.html" />
    
    
    <link rel="prev" href="../python面对过程学习/16.函数进阶.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">笔记</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../阶段一笔记/1.操作系统——特殊的软件.html">
            
                <a href="../阶段一笔记/1.操作系统——特殊的软件.html">
            
                    
                    1.操作系统——特殊的软件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../阶段一笔记/2.命令.html">
            
                <a href="../阶段一笔记/2.命令.html">
            
                    
                    2.命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../阶段一笔记/3.SSH客户端的简单使用.html">
            
                <a href="../阶段一笔记/3.SSH客户端的简单使用.html">
            
                    
                    3.SSH客户端的简单使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../阶段一笔记/4.用户权限相关命令.html">
            
                <a href="../阶段一笔记/4.用户权限相关命令.html">
            
                    
                    4.用户权限相关命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../阶段一笔记/5.系统信息相关命令.html">
            
                <a href="../阶段一笔记/5.系统信息相关命令.html">
            
                    
                    5.系统信息相关命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../阶段一笔记/6.vi命令.html">
            
                <a href="../阶段一笔记/6.vi命令.html">
            
                    
                    6.vi命令
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">软件安装及其使用</li>
        
        
    

    
        
        <li class="header">pycharm</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../阶段二笔记/pycharm安装及配置.html">
            
                <a href="../阶段二笔记/pycharm安装及配置.html">
            
                    
                    pycharm安装及配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../阶段二笔记/pycharm使用.html">
            
                <a href="../阶段二笔记/pycharm使用.html">
            
                    
                    pycharm使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../阶段二笔记/pycharm激活问题.html">
            
                <a href="../阶段二笔记/pycharm激活问题.html">
            
                    
                    pycharm激活问题
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">电子书搭建</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../阶段二笔记/gitbook安装.html">
            
                <a href="../阶段二笔记/gitbook安装.html">
            
                    
                    gitbook安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" >
            
                <span>
            
                    
                    git
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.2.1" data-path="../阶段二笔记/git简要.html">
            
                <a href="../阶段二笔记/git简要.html">
            
                    
                    git简要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.2" data-path="../阶段二笔记/git安装及使用.html">
            
                <a href="../阶段二笔记/git安装及使用.html">
            
                    
                    git安装及使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.3" data-path="../阶段二笔记/git分支管理.html">
            
                <a href="../阶段二笔记/git分支管理.html">
            
                    
                    git分支管理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../阶段二笔记/github使用.html">
            
                <a href="../阶段二笔记/github使用.html">
            
                    
                    github使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../搭建/gitee远程仓库搭建.html">
            
                <a href="../搭建/gitee远程仓库搭建.html">
            
                    
                    gitee远程仓库搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="../搭建/客户端与服务端的搭建.html">
            
                <a href="../搭建/客户端与服务端的搭建.html">
            
                    
                    客户端与服务端的搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6" >
            
                <span>
            
                    
                    问题
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.6.1" data-path="../搭建/gitbook build没有summary.html">
            
                <a href="../搭建/gitbook build没有summary.html">
            
                    
                    gitbook build没有summary
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6.2" data-path="../问题/typora结合picgo实现上传图片到gitee.html">
            
                <a href="../问题/typora结合picgo实现上传图片到gitee.html">
            
                    
                    typora结合picgo实现上传图片到gitee
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">软件工具</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../阶段二笔记/anaconda下载与使用.html">
            
                <a href="../阶段二笔记/anaconda下载与使用.html">
            
                    
                    anaconda下载与配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../阶段二笔记/anaconda的使用.html">
            
                <a href="../阶段二笔记/anaconda的使用.html">
            
                    
                    anaconda的使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="../阶段二笔记/python3.6.4下载与安装.html">
            
                <a href="../阶段二笔记/python3.6.4下载与安装.html">
            
                    
                    python3.6.4下载与安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="../阶段二笔记/typora安装及配置.html">
            
                <a href="../阶段二笔记/typora安装及配置.html">
            
                    
                    typora安装及配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="../阶段二笔记/ubuntu  tool安装.html">
            
                <a href="../阶段二笔记/ubuntu  tool安装.html">
            
                    
                    ubuntu  tool安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="../阶段二笔记/Jetbrains系列产品重置试用方法.html">
            
                <a href="../阶段二笔记/Jetbrains系列产品重置试用方法.html">
            
                    
                    Jetbrains系列产品重置试用方法
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">python学习</li>
        
        
    

    
        
        <li class="header">面对过程</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="../python面对过程学习/0.python学习.html">
            
                <a href="../python面对过程学习/0.python学习.html">
            
                    
                    0.python学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="../python面对过程学习/1.python简介.html">
            
                <a href="../python面对过程学习/1.python简介.html">
            
                    
                    1.python简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="../python面对过程学习/2.python程序no.1.html">
            
                <a href="../python面对过程学习/2.python程序no.1.html">
            
                    
                    2.python程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="../python面对过程学习/3.多文件项目的演练.html">
            
                <a href="../python面对过程学习/3.多文件项目的演练.html">
            
                    
                    3.多文件项目的演练
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5" data-path="../python面对过程学习/4.程序注释.html">
            
                <a href="../python面对过程学习/4.程序注释.html">
            
                    
                    4.程序注释
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.6" data-path="../python面对过程学习/5.算数运算符.html">
            
                <a href="../python面对过程学习/5.算数运算符.html">
            
                    
                    5.算数运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.7" data-path="../python面对过程学习/6.程序执行原理（科普）.html">
            
                <a href="../python面对过程学习/6.程序执行原理（科普）.html">
            
                    
                    6.程序执行原理（科普）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.8" data-path="../python面对过程学习/7.变量的基本使用.html">
            
                <a href="../python面对过程学习/7.变量的基本使用.html">
            
                    
                    7.变量的基本使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.9" data-path="../python面对过程学习/8.变量的命名.html">
            
                <a href="../python面对过程学习/8.变量的命名.html">
            
                    
                    8.变量的命名
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.10" data-path="../python面对过程学习/9.判断（if）语句.html">
            
                <a href="../python面对过程学习/9.判断（if）语句.html">
            
                    
                    9.判断（if）语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.11" data-path="../python面对过程学习/10.运算符.html">
            
                <a href="../python面对过程学习/10.运算符.html">
            
                    
                    10.运算符.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.12" data-path="../python面对过程学习/11.循环.html">
            
                <a href="../python面对过程学习/11.循环.html">
            
                    
                    11.循环.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.13" data-path="../python面对过程学习/12.函数基础.html">
            
                <a href="../python面对过程学习/12.函数基础.html">
            
                    
                    12.函数基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.14" data-path="../python面对过程学习/13.高级变量类型.html">
            
                <a href="../python面对过程学习/13.高级变量类型.html">
            
                    
                    13.函数基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.15" data-path="../python面对过程学习/14.综合应用 —— 名片管理系统.html">
            
                <a href="../python面对过程学习/14.综合应用 —— 名片管理系统.html">
            
                    
                    14.综合应用 —— 名片管理系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.16" data-path="../python面对过程学习/15.变量进阶（理解）.html">
            
                <a href="../python面对过程学习/15.变量进阶（理解）.html">
            
                    
                    15.变量进阶（理解）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.17" data-path="../python面对过程学习/16.函数进阶.html">
            
                <a href="../python面对过程学习/16.函数进阶.html">
            
                    
                    16.函数进阶
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">面对对象</li>
        
        
    
        <li class="chapter active" data-level="8.1" data-path="编程exe.html">
            
                <a href="编程exe.html">
            
                    
                    编程exe
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">问题</li>
        
        
    
        <li class="chapter " data-level="9.1" data-path="../问题/安装软件.html">
            
                <a href="../问题/安装软件.html">
            
                    
                    安装软件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.2" data-path="../问题/激活码网站.html">
            
                <a href="../问题/激活码网站.html">
            
                    
                    激活码网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.3" data-path="../问题/虚拟机.html">
            
                <a href="../问题/虚拟机.html">
            
                    
                    虚拟机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.4" data-path="../问题/疑难杂症.html">
            
                <a href="../问题/疑难杂症.html">
            
                    
                    疑难杂症
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >编程exe</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="python&#x5982;&#x4F55;&#x751F;&#x6210;exe&#x6587;&#x4EF6;&#xFF1F;">Python&#x5982;&#x4F55;&#x751F;&#x6210;exe&#x6587;&#x4EF6;&#xFF1F;</h1>
<h2 id="&#x7B2C;&#x4E00;&#x6B65;-&#x4E0B;&#x8F7D;pyinstaller">&#x7B2C;&#x4E00;&#x6B65; &#x4E0B;&#x8F7D;pyinstaller</h2>
<p>pyinstaller&#x63D2;&#x4EF6;&#x662F;Python&#x81EA;&#x5E26;&#x7684;&#x63D2;&#x4EF6;&#xFF0C;&#x7528;&#x4E8E;&#x4E3A;&#x6211;&#x4EEC;&#x5199;&#x597D;&#x7684;&#x4EE3;&#x7801;&#x8FDB;&#x884C;&#x6253;&#x5305;&#xFF0C;&#x6700;&#x7EC8;&#x81EA;&#x52A8;&#x5408;&#x6210;.exe&#x6587;&#x4EF6;&#x3002;</p>
<p>&#x5728;Pycharm&#x754C;&#x9762;&#x7684;&#x6700;&#x4E0B;&#x9762;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x770B;&#x5230;Terminal&#xFF0C;&#x9009;&#x62E9;&#x8FD9;&#x4E2A;&#x9009;&#x9879;&#xFF0C;&#x8FD9;&#x5C31;&#x662F;&#x4E00;&#x4E2A;&#x7EC8;&#x7AEF;&#x754C;&#x9762;&#x3002;<img src="https://gitee.com/lichaikui/picture/raw/master/tupian/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L05pcmVfWWV5dQ==,size_16,color_FFFFFF,t_70.jpeg" alt="&#x5728;&#x8FD9;&#x91CC;&#x63D2;&#x5165;&#x56FE;&#x7247;&#x63CF;&#x8FF0;"></p>
<p>&#x5728;&#x6B64;&#x754C;&#x9762;&#x5199;&#x8F93;&#x5165;&#x6307;&#x4EE4;&#xFF1A; <strong>pip install pyinstaller</strong> &#x5BF9;pyinstaller&#x8FDB;&#x884C;&#x4E0B;&#x8F7D;&#x3002;</p>
<h5 id="&#x6211;&#x7684;&#x9519;&#x8BEF;&#x4E00;&#xFF1A;">&#x6211;&#x7684;&#x9519;&#x8BEF;&#x4E00;&#xFF1A;</h5>
<ul>
<li>python3.10&#x548C;pythpn3.9&#x73AF;&#x5883;&#x51B2;&#x7A81;   &#x7528;anaconda  <strong>python310</strong>&#x73AF;&#x5883;&#x89E3;&#x51B3;</li>
</ul>
<h5 id="&#x5E38;&#x89C1;&#x9519;&#x8BEF;&#x63D0;&#x793A;&#x4E00;&#xFF1A;">&#x5E38;&#x89C1;&#x9519;&#x8BEF;&#x63D0;&#x793A;&#x4E00;&#xFF1A;</h5>
<ul>
<li>&#x5728;&#x7EC8;&#x7AEF;&#x4E2D;&#x8F93;&#x5165;&#x6307;&#x4EE4; pip install pyinstaller &#x540E;&#xFF0C;&#x62A5;&#x9519;&#xFF1A;</li>
</ul>
<pre><code>&#x201C;You are using pip version 10.0.1, however version 20.0.2 is available.
You should consider upgrading via the &#x2018;python -m pip install --upgrade pip&#x2019; command.&#x201D;
</code></pre><ul>
<li><p>&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;</p>
<p>&#x200B;    &#x8F93;&#x5165;&#x6307;&#x4EE4;&#xFF1A;&#x2018;python -m pip install --upgrade pip&#x2019;</p>
<ul>
<li>&#x62A5;&#x9519;&#x4FE1;&#x606F;</li>
</ul>
<pre><code>ERROR: Could not install packages due to an OSError: [WinError 5] &#x62D2;&#x7EDD;&#x8BBF;&#x95EE;&#x3002;: &apos;C:\\Users\\...\\AppData\\Local\\Temp\\pip-uninstall-xq6nqdvs\\jupyter-notebook.exe&apos; Consider using the --user option or check the permissions.
</code></pre><p>&#x200B;                &#x5206;&#x6790; &#x770B;&#x5230;&#x6700;&#x540E;&#x4E00;&#x53E5;Consider using the --user option or check the                 permissions. &#x5E94;&#x8BE5;&#x662F;&#x6743;&#x9650;&#x95EE;&#x9898;&#xFF0C;&#x8DDF;&#x7740;&#x5EFA;&#x8BAE;&#x6765;&#x5C31;&#x53EF;</p>
<ul>
<li>&#x89E3;&#x51B3;&#x65B9;&#x6CD5;
&#x5C06;pip install ...&#x52A0;&#x5165;--user&#x4E3A;pip install --user ...&#x5373;&#x53EF;
&#x5982;&#x679C;&#x8FD8;&#x662F;&#x6709;&#x95EE;&#x9898;&#xFF0C;&#x53EF;&#x4EE5;&#x4EE5;&#x7BA1;&#x7406;&#x5458;&#x6743;&#x9650;&#x8FD0;&#x884C;cmd&#x518D;&#x8F93;&#x5165;&#x4E0A;&#x8FF0;&#x547D;&#x4EE4;&#x884C;&#x8BD5;&#x8BD5;</li>
<li><a href="https://blog.csdn.net/weixin_43360896/article/details/114307061" target="_blank">https://blog.csdn.net/weixin_43360896/article/details/114307061</a></li>
</ul>
</li>
</ul>
<h2 id="&#x7B2C;&#x4E8C;&#x6B65;-&#x4F7F;&#x7528;pyinstaller">&#x7B2C;&#x4E8C;&#x6B65; &#x4F7F;&#x7528;pyinstaller</h2>
<p>&#x5728;&#x7EC8;&#x7AEF;&#x91CC;&#x8F93;&#x5165;&#x7684;&#x6307;&#x4EE4;&#x4E3A;&#xFF1A; <strong>pyinstaller -w -F XXX.py</strong></p>
<p>&#x4F46;&#x662F;&#x5BF9;&#x4E8E;&#x521D;&#x5B66;&#x8005;&#x6765;&#x8BF4;&#xFF0C;&#x8FD9;&#x91CC;&#x8981;&#x89E3;&#x91CA;&#x7684;&#x4E1C;&#x897F;&#x5F88;&#x591A;&#xFF1A;
-w&#xFF1A;&#x8868;&#x793A;&#x5E0C;&#x671B;&#x5728;&#x751F;&#x6210;&#x7684;.exe&#x7A0B;&#x5E8F;&#x8FD0;&#x884C;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;&#x4E0D;&#x8981;&#x51FA;&#x73B0;cmd&#x9ED1;&#x6846;&#xFF08;&#x5C31;&#x662F;&#x56FE;&#x4E2D;&#x7684;&#x9ED1;&#x6846;&#xFF09;&#xFF08;&#x6CE8;&#x610F;&#xFF1A;&#x5C0F;&#x5199;&#xFF01;&#xFF09;
<img src="https://gitee.com/lichaikui/picture/raw/master/tupian/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L05pcmVfWWV5dQ==,size_16,color_FFFFFF,t_70-16396598888461.png" alt="&#x5728;&#x8FD9;&#x91CC;&#x63D2;&#x5165;&#x56FE;&#x7247;&#x63CF;&#x8FF0;"></p>
<p>-F&#xFF1A;&#x8868;&#x793A;&#x5E0C;&#x671B;&#x5C06;&#x6240;&#x6709;&#x7684;&#x7A0B;&#x5E8F;&#x5168;&#x90E8;&#x6253;&#x5305;&#x5728;&#x4E00;&#x8D77;&#xFF0C;&#x751F;&#x6210;&#x7684;&#x53EA;&#x6709;&#x4E00;&#x4E2A;.exe&#x6587;&#x4EF6;&#xFF0C;&#x8FD9;&#x6837;&#x7684;&#x6587;&#x4EF6;&#x96C6;&#x6210;&#x5EA6;&#x9AD8;&#xFF0C;&#x4F46;&#x662F;&#x8FD0;&#x884C;&#x901F;&#x5EA6;&#x6162;&#xFF1B;&#x5982;&#x679C;&#x4E0D;&#x5199;-F&#xFF0C;&#x751F;&#x6210;&#x7684;&#x8FD8;&#x6709;&#x4E00;&#x5806;.dll&#x6587;&#x4EF6;&#xFF0C;&#x8FD9;&#x6837;&#x7684;&#x7A0B;&#x5E8F;&#x91CC;&#x6587;&#x4EF6;&#x5F88;&#x591A;&#xFF0C;&#x4F46;&#x662F;&#x8FD0;&#x884C;&#x901F;&#x5EA6;&#x6BD4;&#x8F83;&#x5FEB;&#xFF0C;&#x8FD9;&#x4E5F;&#x662F;&#x6211;&#x4EEC;&#x5E73;&#x65F6;&#x4F7F;&#x7528;&#x7684;&#x7A0B;&#x5E8F;&#x7684;&#x6837;&#x5F0F;&#xFF08;&#x5982;&#x56FE;&#xFF09;&#xFF08;&#x6CE8;&#x610F;&#xFF1A;&#x5927;&#x5199;&#xFF01;&#xFF09;
<img src="https://gitee.com/lichaikui/picture/raw/master/tupian/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L05pcmVfWWV5dQ==,size_16,color_FFFFFF,t_70-16396599213134.png" alt="&#x5728;&#x8FD9;&#x91CC;&#x63D2;&#x5165;&#x56FE;&#x7247;&#x63CF;&#x8FF0;">
XXX.py&#xFF1A;&#x6307;&#x7684;&#x662F;&#x4F60;&#x6574;&#x4E2A;&#x9879;&#x76EE;&#x7684;&#x5165;&#x53E3;&#x7A0B;&#x5E8F;&#xFF0C;&#x5927;&#x5BB6;&#x5199;&#x9879;&#x76EE;&#x65F6;&#x5F88;&#x53EF;&#x80FD;&#x662F;&#x591A;&#x6587;&#x4EF6;&#x7F16;&#x7A0B;&#xFF0C;&#x4F60;&#x6574;&#x4E2A;&#x9879;&#x76EE;&#x65F6;&#x9760;&#x54EA;&#x4E2A;&#x6587;&#x4EF6;&#x4F5C;&#x4E3A;&#x5165;&#x53E3;&#x62C9;&#x8D77;&#x6765;&#x7684;&#xFF0C;&#x5C31;&#x586B;&#x90A3;&#x4E2A;&#x6587;&#x4EF6;&#x7684;&#x540D;&#x5B57;&#x3002;</p>
<p>&#x5E38;&#x89C1;&#x9519;&#x8BEF;&#xFF1A;
ValueError: script &#x2018;C:\Users\Administrator.XXX.py&#x2019; not found
&#x627E;&#x4E0D;&#x5230;XXX.py&#x8FD9;&#x4E2A;&#x7A0B;&#x5E8F;
<img src="https://gitee.com/lichaikui/picture/raw/master/tupian/2020030521293772.png" alt="&#x5728;&#x8FD9;&#x91CC;&#x63D2;&#x5165;&#x56FE;&#x7247;&#x63CF;&#x8FF0;">
&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;
pyinstaller&#x627E;&#x6587;&#x4EF6;&#x7684;&#x65B9;&#x6CD5;&#x662F;&#x770B;&#x4F60;&#x5EFA;&#x7ACB;&#x7684;&#x90A3;&#x4E2A;&#x5DE5;&#x7A0B;&#x6587;&#x4EF6;&#x5939;&#x91CC;&#x6709;&#x6CA1;&#x6709;&#x4F60;&#x5199;&#x8FDB;&#x53BB;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x770B;&#x5B50;&#x6587;&#x4EF6;&#x5939;&#x91CC;&#x6709;&#x6CA1;&#x6709;&#x3002;&#x5982;&#x679C;&#x60A8;&#x662F;&#x5728;&#x5B50;&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x5199;&#x7A0B;&#x5E8F;&#xFF0C;&#x53EF;&#x4EE5;&#x628A;&#x4F60;&#x5199;&#x7684;&#x6240;&#x6709;&#x7A0B;&#x5E8F;&#x90FD;&#x62F7;&#x8D1D;&#x5230;&#x5DE5;&#x7A0B;&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x3002;
&#x5982;&#x679C;&#x4F60;&#x5728;&#x4EE3;&#x7801;&#x4E2D;&#x5BFC;&#x5165;&#x4E86;&#x56FE;&#x7247;&#x3001;&#x6587;&#x6863;&#x7B49;&#x4E0E;&#x8DEF;&#x5F84;&#x76F8;&#x5173;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x6CE8;&#x610F;&#x4FEE;&#x6539;&#x8DEF;&#x5F84;&#x3002;</p>
<h2 id="&#x7B2C;&#x4E09;&#x6B65;&#xFF1A;-&#x627E;&#x5230;&#x751F;&#x6210;&#x7684;exe&#x6587;&#x4EF6;">&#x7B2C;&#x4E09;&#x6B65;&#xFF1A; &#x627E;&#x5230;&#x751F;&#x6210;&#x7684;.exe&#x6587;&#x4EF6;</h2>
<p>&#x6709;&#x4E0D;&#x5C11;&#x540C;&#x5B66;&#x90FD;&#x53CD;&#x6620;&#xFF0C;&#x6CA1;&#x6709;&#x770B;&#x5230;&#x751F;&#x6210;&#x7684;.exe&#x6587;&#x4EF6;&#x3002;</p>
<p>&#x6CA1;&#x770B;&#x89C1;&#x5C31;&#x5BF9;&#x4E86;&#xFF0C;&#x56E0;&#x4E3A;.exe&#x6587;&#x4EF6;&#x6839;&#x672C;&#x4E0D;&#x5728;&#x5DE5;&#x7A0B;&#x6587;&#x4EF6;&#x5939;&#x4E0B;&#x9762;&#x3002;&#x8FD0;&#x884C;pyinstaller -w -F XXX.py&#x6307;&#x4EE4;&#x540E;&#xFF0C;&#x4F1A;&#x751F;&#x6210;&#x4E24;&#x4E2A;&#x6587;&#x4EF6;&#x5939;&#xFF1A;&#x4E00;&#x4E2A;&#x53EB;build&#xFF0C;&#x53E6;&#x4E00;&#x4E2A;&#x53EB;dist&#x3002;
<img src="https://gitee.com/lichaikui/picture/raw/master/tupian/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L05pcmVfWWV5dQ==,size_16,color_FFFFFF,t_70-16396599213145.png" alt="&#x5728;&#x8FD9;&#x91CC;&#x63D2;&#x5165;&#x56FE;&#x7247;&#x63CF;&#x8FF0;">
&#x70B9;&#x5F00;dist&#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x91CC;&#x9762;&#x4F1A;&#x6709;&#x4E00;&#x4E2A;&#x7528;&#x4F60;&#x586B;&#x8FDB;&#x53BB;&#x7684;XXX&#x547D;&#x540D;&#x7684;&#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x518D;&#x70B9;&#x8FDB;&#x53BB;&#xFF0C;&#x4F60;&#x5C31;&#x4F1A;&#x770B;&#x5230;XXX.exe&#x6587;&#x4EF6;&#x3002;
<img src="https://gitee.com/lichaikui/picture/raw/master/tupian/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L05pcmVfWWV5dQ==,size_16,color_FFFFFF,t_70-16396599213146.png" alt="&#x5728;&#x8FD9;&#x91CC;&#x63D2;&#x5165;&#x56FE;&#x7247;&#x63CF;&#x8FF0;">
&#x7406;&#x8BBA;&#x4E0A;&#x4F60;&#x5DF2;&#x7ECF;&#x751F;&#x6210;&#x4E86;.exe&#x53EF;&#x6267;&#x884C;&#x6587;&#x4EF6;&#xFF0C;&#x8FD9;&#x6837;&#x5C31;&#x5B8C;&#x6210;&#x4E86;&#x3002;&#x5982;&#x679C;&#x4F60;&#x7684;.exe&#x6587;&#x4EF6;&#x53EF;&#x4EE5;&#x8FD0;&#x884C;&#x8D77;&#x6765;&#xFF0C;&#x90A3;&#x4E48;&#x606D;&#x559C;&#x4F60;&#xFF01;&#x4F46;&#x662F;&#x5B9E;&#x65BD;&#x60C5;&#x51B5;&#x662F;&#xFF0C;&#x8FD9;&#x4E2A;.exe&#x6587;&#x4EF6;&#x8FD0;&#x884C;&#x8D77;&#x6765;&#x5F88;&#x6709;&#x53EF;&#x80FD;&#x4F1A;&#x6709;&#x5404;&#x79CD;&#x5404;&#x6837;&#x5947;&#x8469;&#x7684;&#x95EE;&#x9898;&#xFF1A;&#x6BD4;&#x5982;&#x95EA;&#x9000;&#x3001;&#x53CC;&#x51FB;&#x540E;&#x76F4;&#x63A5;&#x6D88;&#x5931;&#x4E86;&#x3001;&#x7A0B;&#x5E8F;&#x83AB;&#x540D;&#x5176;&#x5999;&#x5730;&#x5D29;&#x6389;&#x7B49;</p>
<p><a href="https://blog.csdn.net/Nire_Yeyu/article/details/104683888/" target="_blank">(2&#x6761;&#x6D88;&#x606F;) Python&#x5982;&#x4F55;&#x751F;&#x6210;exe&#x6587;&#x4EF6;&#xFF1F;&#x7528;Pycharm&#x4E00;&#x6B65;&#x4E00;&#x6B65;&#x5E26;&#x7740;&#x4F60;&#x5B66;&#xFF08;&#x8D85;&#x8BE6;&#x7EC6;&#x3001;&#x8D85;&#x8D34;&#x5FC3;&#xFF09;_Nire_Yeyu&#x7684;&#x535A;&#x5BA2;-CSDN&#x535A;&#x5BA2;_python&#x751F;&#x6210;exe&#x6587;&#x4EF6;</a></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../python面对过程学习/16.函数进阶.html" class="navigation navigation-prev " aria-label="Previous page: 16.函数进阶">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../问题/安装软件.html" class="navigation navigation-next " aria-label="Next page: 安装软件">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"编程exe","level":"8.1","depth":1,"next":{"title":"安装软件","level":"9.1","depth":1,"path":"问题/安装软件.md","ref":"./问题/安装软件.md","articles":[]},"previous":{"title":"16.函数进阶","level":"7.17","depth":1,"path":"python面对过程学习/16.函数进阶.md","ref":"./python面对过程学习/16.函数进阶.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"课余/编程exe.md","mtime":"2022-02-21T08:36:34.285Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T13:44:59.630Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

